< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03132200.xhp

(section: thiscomponent) (bookmark: bm_id3155342)
ThisComponent property
components;addressing

ThisComponent 属性
コンポーネント;アドレス指定

ThisComponent [Runtime]
ThisComponent [実行時](hd_id3155342.1)

Addresses the active component so that its properties can be read and set. ThisComponent is used from document Basic, where it represents the document the Basic belongs to. The type of object accessed by ThisComponent depends on the document type.
属性の読み取りおよび設定ができるように、アクティブなコンポーネントのアドレスを指定します。 ThisComponent は、Basic が属するドキュメントを表すドキュメント Basic から使用します。 ThisComponent がアクセスするオブジェクトの種類は、ドキュメントの種類によって異なります。(par_id3154923.2)

(/section: thiscomponent)

Syntax:
構文:(hd_id3154346.3)

ThisComponent
ThisComponent(par_id3151056.4)

Example:
例:(hd_id3154940.5)

Sub Main
Sub Main(par_id3151211.6)

REM updates the "Table of Contents" in a text doc
REM 文章ドキュメント上の「目次」の更新(par_id3154123.7)

Dim allindexes, index As Object
Dim allindexes, index As Object(par_id3151381.8)

allindexes = ThisComponent.getDocumentIndexes()
allindexes = ThisComponent.getDocumentIndexes()(par_id3150769.9)

index = allindexes.getByName("Table of Contents1")
index = allindexes.getByName("目次1")(par_id3153194.10)

REM use the default name for Table of Contents and a 1
REM 目次のデフォルト名を使用(par_id3156422.11)

index.update()
index.update()(par_id3153368.12)

End Sub
End Sub(par_id3161832.13)


< Prev / Next >